package com.polymorphic多态.poly01;

public class Master {
   public String name;
    public Master(String name) {
//        super();  //他父类是Object，所以不用写super();
        this.name = name;
    }

    public void feed(Animal animal,Food food){
        System.out.println(this.name+" 给 "+animal.getName()+" 吃 "+food.getName());
    }


}
